package com.link.base.base.project.dao.mybatis.mapper;

import com.link.base.base.project.model.Project;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 项目
 *
 * @author 阳晓琳
 * @date 2020-09-21 16:36:57
 */
public interface ProjectMapper extends BasicMapper<Project> {

    /**
     * 更新 是否对外报价字段
     * @param project
     * @throws Exception
     */
    void updateIsQuoteCompute(Project project) throws Exception;

    /**
     * 报价审批更新审批状态
     * @param project
     * @throws Exception
     */
    public void updateStatus(Project project) throws Exception;

    void updateProjectStatus(Project project) throws Exception;

    /**
     * 根据项目ID查询所有零件类型
     * @param entity
     * @return
     * @throws Exception
     */
    List<Project> queryByProId(Project entity) throws Exception;

    /**
     * 根据项目信息查询所有年降信息（分页
     *
     * @author 阳晓琳
     * @date 2020/01/06 16:21
     */
    List<Project> projectYearTotalReportPage(Project entity);
}
